﻿<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Swiper中文网基础演示(www.swiper.com.cn)</title>
    <link rel="stylesheet" href="css/swiper-3.4.1.min.css">
    <link rel="stylesheet" href="css/idangerous.swiper.3dflow.css">
    <script src = "js/jquery.min.js"></script>
    <script src = "js/swiper-3.4.1.jquery.min.js"></script>
    <style>
    * {
        margin: 0;
        padding: 0;
    }
    
    .swiper-container {
    	margin-top:100px;
        width: 600px;
        height: 300px;
    }
    .swiper-slide {
        line-height: 300px;
        color: #fff;
        font-size: 36px;
        text-align: center;
    }
    .swiper-slide img{
    	width:100%;
    	text-align:center;
    }
    </style>
</head>

<body>
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide blue-slide"><img src="img/1.png" alt=""></div>
            <div class="swiper-slide red-slide"><img src="img/2.jpg" alt=""></div>
            <div class="swiper-slide orange-slide"><img src="img/3.jpg" alt=""></div>
        </div>
        <!-- 分页器 -->
        <div class="swiper-pagination"></div>
        <!-- 导航按钮 -->
        <div class="swiper-button-prev"></div>
        <div class="swiper-button-next"></div>
        <!-- 滚动条 -->
        <div class="swiper-scrollbar"></div>
    </div>
    <script type="text/javascript">
    var mySwiper = new Swiper('.swiper-container', {
        slidesPerView: 3,
        loop: true,
        /*autoplay: 3000,
        //	分页器
        pagination: '.swiper-pagination',*/
        //	前进后退按钮
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        //	滚动条
        /*scrollbar: '.swiper-scrollbar'*/
        //	3d
        /*effect: 'coverflow',
        coverflow: {
        	rotate: 30,
        	stretch: 50,
        	depth: 200,
        	modifier: 1,
        	slideShadows: true
        }*/
        tdFlow: {
            rotate: 30,
            stretch: 10,
            depth: 150,
            modifier: 1,
            shadows: true
        }
    });
    </script>
</body>

</html>
